package com.ny.entity;


import java.util.Date;
// 预约表有用户表和教室表的id，作为外键。是有关联（关系）预约表包含这用户的信息。
// XX用户预约了XX教室
public class Reservations {
    private int reservationId;
    private Users user;
    private Classrooms classroom;
    private Date startDatetime;
    private Date endDatetime;
    private String status;
    private String reason;
    private String rejectReason;

    public String getRejectReason() {
        return rejectReason;
    }

    public void setRejectReason(String rejectReason) {
        this.rejectReason = rejectReason;
    }


    public int getReservationId() {
        return reservationId;
    }

    public void setReservationId(int reservationId) {
        this.reservationId = reservationId;
    }

    public Users getUser() {
        return user;
    }

    public void setUser(Users user) {
        this.user = user;
    }

    public Classrooms getClassroom() {
        return classroom;
    }

    public void setClassroom(Classrooms classroom) {
        this.classroom = classroom;
    }

    public Date getStartDatetime() {
        return startDatetime;
    }

    public void setStartDatetime(Date startDatetime) {
        this.startDatetime = startDatetime;
    }

    public Date getEndDatetime() {
        return endDatetime;
    }

    public void setEndDatetime(Date endDatetime) {
        this.endDatetime = endDatetime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    @Override
    public String toString() {
        return "Reservations{" +
                "reservationId=" + reservationId +
                ", user=" + user +
                ", classroom=" + classroom +
                ", startDatetime=" + startDatetime +
                ", endDatetime=" + endDatetime +
                ", status='" + status + '\'' +
                ", reason='" + reason + '\'' +
                ", rejectReason='" + rejectReason + '\'' +
                '}';
    }
}